﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demos.DesignPatterns._07_适配器模式
{

    /// <summary>
    /// 支付网关接口
    /// </summary>
    public interface IPaymentGateway
    {
        /// <summary>
        /// 处理支付
        /// </summary>
        /// <param name="businessId"></param>
        /// <param name="amount"></param>
        /// <param name="currency"></param>
        /// <returns></returns>
        bool ProcessPayment(string businessId, decimal amount, string currency);
        /// <summary>
        /// 获取支付状态
        /// </summary>
        /// <param name="transactionId"></param>
        /// <returns></returns>
        string GetPaymentStatus(string transactionId);  

    } 

}
